﻿@model ENTIDADES.Cliente

@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>Clientes</title>
</head>
<body>
    <script src="~/js/jquery-1.9.1.js"></script>
    <script src="~/js/grid.locale-es.js"></script>
    <script src="~/js/jquery.jqGrid.min.js"></script>
    <script src="~/js/bootstrap.js"></script>
    <script src="~/js/restaurante.js"></script>

<link href="~/css/bootstrap.css" rel="stylesheet" />
    <link href="~/css/bootstrap.icon-large.min.css" rel="stylesheet" />
    <link href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" rel="stylesheet" />
    <link href="~/css/ui.jqgrid.css" rel="stylesheet" />
    
    @using (Html.BeginForm()) {
        @Html.ValidationSummary(true)
        
        
    <div class="well" style="width:96%; height:900px">                
               
                
                <div class="form-horizontal control-group">
                   <label class="control-label">
                         DNI: </label>
                    <div class="controls">
                        @Html.TextBoxFor(model => model.DNI, new {@maxLength = "8" }) 
                        @Html.ValidationMessageFor(model => model.DNI)
                    </div>
                </div>

            <div class="form-horizontal control-group">
                   <label class="control-label">
                         Nombre: </label>
                    <div class="controls">
                        @Html.TextBoxFor(model => model.nombres ,new{@maxLenght = "30" } )
                @Html.ValidationMessageFor(model => model.nombres)
                    </div>
                </div>    
         <div class="form-horizontal control-group">
                   <label class="control-label">
                         Apellido Paterno: </label>
                    <div class="controls">
                    @Html.TextBoxFor(model => model.ap_paterno,new{@maxLenght = "30" } ))
                @Html.ValidationMessageFor(model => model.ap_paterno)
                    </div>
                </div>          
         <div class="form-horizontal control-group">
                   <label class="control-label">
                         Apellido Materno: </label>
                    <div class="controls">
                @Html.TextBoxFor(model => model.ap_materno,new{@maxLenght = "30" } ))
                @Html.ValidationMessageFor(model => model.ap_materno)
            </div>
                    </div>
                 
         <div class="form-horizontal control-group">
                   <label class="control-label">
                         Telefono: </label>
                    <div class="controls">
               @Html.TextBoxFor(model => model.telefono,new{@maxLenght = "15" } ))
                @Html.ValidationMessageFor(model => model.telefono)
            </div>
                    </div>
             
        
          <div class="form-horizontal control-group">
                   <label class="control-label">
                         Email: </label>
                    <div class="controls">
               @Html.TextBoxFor(model => model.email,new{@maxLenght = "40" } ))

                @Html.ValidationMessageFor(model => model.email)
            </div>
                    </div>    
            <div class="form-horizontal control-group">
                          <label class="control-label">
                         Direccion: </label>
                    <div class="controls">
               @Html.TextBoxFor(model => model.direccion,new{@maxLenght = "50" } ))
                @Html.ValidationMessageFor(model => model.direccion)
              </div>
                  </div>
    
            <p>
                <input type="submit" value="Registrar" class="btn btn-block btn-personalizado" />
            </p>
        
        </div>
    }
    
    <div>
        @Html.ActionLink("Back to List", "Index")
    </div>
</body>
</html>
